<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'nls/date.inc.php');


class TCMS_CI extends Tangra_Class {
	private $id;
	private $created;
	private $type;


	public function set_id($id) {
		tangra_if_not_int_throw_e($id);

		$this->id = $id;
	}


	public function get_id() {
		return $this->id;
	}


	public function set_created($created) {
		if (check_timestamp($created)) {
			$this->created = $created;
		} else {
			throw new Tangra_Module_Exception('Invalid datetime in $created: '.$created);
		}
	}


	public function get_created() {
		return $this->created;
	}


	public function set_type($type) {
		tangra_if_not_int_throw_e($type);

		$this->type = $type;
	}


	public function get_type() {
		return $this->type;
	}
}